
   package  com.view.empresa.funcionario.backbean;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;

import entity.*;


	public class NewUserBean {

	
	public NewUserBean() {
		           	}
	
        

				public List  user = new ArrayList<UserBean>();

		
	      

			public List  getUser() {

                        List selectItems = new ArrayList() ;
                        UserBean userB = new UserBean();
                        user.add(userB);
                             for(int i = 0 ; i <  user.size() ; i++){
                              UserBean b = (UserBean) user.get(i);
                              selectItems.add(new SelectItem(i, b.getNome()+i , ""));

                             }

                          return selectItems;
                     }
                                




			
		

		public void setUser(List user) {
			
			if (user == null){
				return;
			}else{
				this.user = user;
			}

		}

		public void addUser(ActionEvent e){
                        UserBean b = new UserBean();
                                 this.user.add(b);
			
		}
				

	
	
      

}